import request from '@/utils/request'

// 查询重订货列表
export function listReorder(query) {
  return request({
    url: '/system/reorder/list',
    method: 'get',
    params: query
  })
}

// 查询重订货详细
export function getReorder(id) {
  return request({
    url: '/system/reorder/' + id,
    method: 'get'
  })
}

// 新增重订货
export function addReorder(data) {
  return request({
    url: '/system/reorder',
    method: 'post',
    data: data
  })
}

// 修改重订货
export function updateReorder(data) {
  return request({
    url: '/system/reorder',
    method: 'put',
    data: data
  })
}

// 删除重订货
export function delReorder(id) {
  return request({
    url: '/system/reorder/' + id,
    method: 'delete'
  })
}
